<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>⽐较两个对象或者两个数完全相等</title>
</head>

<body>
    <script>
        var num={
            a:1
        }
        var obj={
            a:1
        }
        var i=num
        console.log(Object.is(num,obj))
        console.log(Object.is(num,i))
    </script>
</body>
</html>